package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.RawMaterialMapper;
import com.richest.api.service.IRawMaterialService;
import com.richest.bean.RawMaterialBean;

/**
 * 原材料信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class RawMaterialServiceImpl implements IRawMaterialService {

	@Autowired
	private RawMaterialMapper mapper;

	@Override
	public Integer rawMaterialAdd(RawMaterialBean bean) {
		return mapper.rawMaterialAdd(bean);
	}

	@Override
	public Integer rawMaterialUpdate(RawMaterialBean bean) {
		return mapper.rawMaterialUpdate(bean);
	}

	@Override
	public Integer rawMaterialDelete(Long id) {
		return mapper.rawMaterialDelete(id);
	}

	@Override
	public RawMaterialBean rawMaterialSelectOne(Long id) {
		return mapper.rawMaterialSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> rawMaterialSelectMap(Map<String, Object> params) {
		return mapper.rawMaterialSelectMap(params);
	}
}
